package ch4;


import java.util.Scanner;

public class Ex20{
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a string:");
        String str = input.nextLine();
        System.out.println("length:" + str.length() + "\n" + "The first character:" + str.charAt(0));
    }
}
